package com.knight.study.patterns.tujie.observer;

/**
 * @Author knight
 * @Date 2024/9/12 11:38
 */

public class DigitObserver implements Observer{
    @Override
    public void update(NumberGenerator generator) {
        System.out.println("DigitObserver:" + generator.getNumber());
        try {
            Thread.sleep(100);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
